package com.lianxi.io.controller;


import com.lianxi.pojo.User;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;


@Controller
@RequestMapping("/io")
public class ListTestController {


    @PostMapping("/test")
    @ResponseBody
    public String get(@RequestBody User user){
        System.out.println(user);

        return user.toString();
    }
}

//{
//        "name":"qihao",
//        "age":28,
//        "news":[
//        {
//        "status":80
//        }
//        ]
//        }